package rm.member.business.domain.convert;


import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import rm.member.business.domain.DO.GoodsPromotionDetailDO;
import rm.member.business.domain.DTO.GoodsPromotionDetailDTO;

/**
 *  * N1--
 * OrderInfoDTO-->ChangeDepositLgDetailDO
 */
@Mapper
public interface GoodsPromotionDetailDOToDTO {
    GoodsPromotionDetailDOToDTO INSTANCE = Mappers.getMapper(GoodsPromotionDetailDOToDTO.class);
    @Mappings({
            @Mapping(source = "giftGoodsDOList", target = "giftGoodsDTOList"),
            @Mapping(source = "goodsPromotionDO", target = "goodsPromotionDTO")
    })
    GoodsPromotionDetailDTO domain2dto(GoodsPromotionDetailDO goodsPromotionDetailDO);
}
